class Student < User
  belongs_to :teacher, :class_name=>'Teacher',:foreign_key => 'teacher_id'
  has_many :courseCards, :class_name => 'CoursesStudent',:foreign_key => 'student_id'
  has_many :courses, :through => :courseCards
  def user_type
    return "学员"
  end
end
